package com.ease.access.systemmonitor.service.impl;

import java.util.List;

import com.ease.access.systemmonitor.service.SystemConfAccessService;
import com.ease.model.systemmonitor.SystemConf;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;

public class SystemConfAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<SystemConf> implements SystemConfAccessService {
	private static class Statement {
		static String updateGisAddress = "updateGisAddress";
	}

	public List<SystemConf> findByIds(long[] ids) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateGisAddress(SystemConf model) {
		return this.getIbatisDataAccessObject().update(this.getNamespace(), Statement.updateGisAddress, model);
	}

	public SystemConf saveModel(SystemConf model) {
		// TODO Auto-generated method stub
		if (model.getGisAddress() != null)
			updateGisAddress(model);
		return this.save(model);
	}

	public SystemConf updateModel(SystemConf model) {
		// TODO Auto-generated method stub
		if (model.getGisAddress() != null)
			updateGisAddress(model);
		return this.update(model);
	}

}
